//
//  EKEventStore+Extension.h
//  YSUtils
//
//  Created by edz on 2021/4/11.
//  Copyright © 2021 Apple. All rights reserved.
//

#import <EventKit/EventKit.h>
#import "EKEvent+Extension.h"

NS_ASSUME_NONNULL_BEGIN

FOUNDATION_EXPORT NSString * const YSEventStoreErrorDomain;

NS_ERROR_ENUM(YSEventStoreErrorDomain) {
    YSEventStoreErrorAuthorizationRestricted = -1,
    YSEventStoreErrorAuthorizationDenied = - 2
};

@interface EKEventStore (Extension)

- (void)ys_saveEvent:(EKEvent *)event span:(EKSpan)span completion:(void(^)(NSError* _Nullable error))completion;

@end

NS_ASSUME_NONNULL_END
